Date: Sun, 13 Mar 2011 19:08:20 -0700 From: perryh@pluto.rain.com To: freebsd-questions@freebsd.org Subject: logging to dmesg from userland Message-ID: <4d7d7894.ZVXy6HlL95xx%2Bv0E%perryh@pluto.rain.com>
next in thread | raw e-mail | index | archive | help
I am looking for a way to write into the kernel message buffer -- the one that dmesg prints out -- from a userland program, to help in relating kernel printf messages to the userland operations which provoked them. (Yes, I am aware of the potential DoS implications: the capability should be restricted to root, or at least to the "operator" group. I expect to use it only in single-user mode.) Is there a program, or a system call, which can do this? logger(1) seemed a likely prospect, but either it doesn't have this capability or I haven't found the formula.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4d7d7894.ZVXy6HlL95xx%2Bv0E%perryh>